package  
{
	import Levels.Level1;
	import flash.display.MovieClip;
	import flash.events.Event;
	/**
	 * ...
	 * @author Thiago Aramaki
	 */
	public class Main extends MovieClip
	{
		private static var _instance		:Main;
		private var level					:Level1;
		public var MC_tela					:MovieClip;
		
		public static function getInstance():Main
		{
			return _instance
		}
		
		public function Main() 
		{
			MC_tela = new MovieClip();
			addChild(MC_tela);
			
			_instance = this;
			addEventListener(Event.ENTER_FRAME, update, false, 0, true);
			
			level = new Level1();
		}
		
		public function update(e:Event):void 
		{
			level.update();
		}
		
	}

}